package com.huanong.it.xwcommon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@TableName("comments")
public class Comment {
    @TableId("cm_id")
    private int id;
    @TableField("cm_weiboid")
    private int wbId;
    @TableField("cm_user_loginname")
    private String userLoginName;
    @TableField("cm_content")
    private String content;
    @TableField("cm_createtime")
    private Date createTime;
    @TableField("cm_state")
    private int state;

    @TableField(exist = false)
    private String wbTitle;
    public String getWbTitle() {
        return wbTitle;
    }
    public void setWbTitle(String wbTitle) {
        this.wbTitle = wbTitle;
    }

    //扩充的信息统统都放在Map中(例如从其他微服务拿来的外键对象)
    @TableField(exist = false)
    private Map<String,Object> map=new HashMap<>();
    public Map<String, Object> getMap() {
        return map;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getWbId() {
        return wbId;
    }

    public void setWbId(int wbId) {
        this.wbId = wbId;
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
